{template 'common/header'}
{template 'common/slide'}
<style>
	body{
	font:{$_W['styles']['fontsize']} {$_W['styles']['fontfamily']};
	color:{if empty($_W['styles']['fontcolor'])}#555{else}{$_W['styles']['fontcolor']}{/if};
	padding:0;
	margin:0;
	background-image:url('{if !empty($_W['styles']['indexbgimg'])}{$_W['styles']['indexbgimg']}{/if}');
	background-size:cover;
	background-color:{if empty($_W['styles']['indexbgcolor'])}#f5f5f5{else}{$_W['styles']['indexbgcolor']}{/if};
	{$_W['styles']['indexbgextra']}
	}
	a{color:{$_W['styles']['linkcolor']}; text-decoration:none;}
	{$_W['styles']['css']}
	.box{width:98.5%; margin:1.5% 0 1.5% 1.5%;}
	.box .box-item{float:left; display:block; text-align:center; text-decoration:none; outline:none; height:110px;width:33.33%; line-height:110px; margin:0 auto;border-top:#ffffff solid 0.1em; border-right:#ffffff solid 0.1em; background:-webkit-linear-gradient(#f9fcff 0%,#e3f4ff 100%);background:-moz-linear-gradient(top,#f9fcff 0%,#e3f4ff 100%); padding-bottom:10px; color:#333;}
	.box .box-item i{display:block; width:60px; height:60px; margin:10px auto; line-height:60px; font-size:35px; color:#ffffff; background:-webkit-linear-gradient(#9fc8e4 0%,#8aa9be 100%);background:-moz-linear-gradient(top,#9fc8e4 0%,#8aa9be 100%); overflow:hidden;}
	.box span{color:{$_W['styles']['fontnavcolor']}; display:block; font-size:14px; width:80%; margin-left:10%;height:20px; line-height:20px; text-align:center; overflow:hidden;}
	.imgs img{width:20%; vertical-align:middle;}
	.imgs i{display:inline-block; width:30%; height:50px; line-height:50px; vertical-align:middle;font-size:40px; text-align:center;}
	.list{width:98.5%; margin:1.5% 0 1.5% 1.5%;}
	.list li{padding: 0 5px; list-style:none;}
	.list li a{display:block; height:71px; padding:5px;background:-webkit-linear-gradient(#ffffff 0%,#dfdfdf 100%); background:-moz-linear-gradient(top,#ffffff 0%,#dfdfdf 100%); border-radius:3px; border-bottom:#c8c8c8 solid 1px; margin-top:5px; color:#333; overflow:hidden; text-decoration:none !important; position:relative;}
	.list li a .thumb{width:80px; height:60px;}
	.list li a .title{font-size:14px; padding-left:90px;}
	.list li a .createtime{font-size:12px; color:#999; position:absolute; bottom:5px;padding-left:90px;}
</style>
<script>
	require(['jquery'],function($){
		$('.box i').addClass("img-circle");
	});
</script>
<div class="box clearfix">
	{loop $navs $nav}
	{$nav['html']}
	{/loop}
</div>
<div class="imgs clearfix">
	{loop $navs $nav}
		<span>
		<a href="{$nav['url']}">
		{if !empty($nav['icon'])}
		<img src="{$_W['attachurl']}{$nav['icon']}">
		{else}
		<i class="fa {$nav['css']['icon']['icon']}" style="{$nav['css']['icon']['style']}"></i>
		{/if}
		</a>
		</span>
	{php if($nav['iteration'] > 0) break;}
	{/loop}
</div>
<div class="list clearfix">
	{data module="site" func="site_article" cid="$cid" assign="result" return="true"}
	{loop $result['list'] $nav}
	<li>
		<a href="{$nav['linkurl']}">
			{if $nav['thumb']}<img src="{$nav['thumb']}" class="pull-left thumb" onerror="this.parentNode.removeChild(this)" />{/if}
			<div class="title">{$nav['title']}</div>
			<div class="createtime">{php echo date('Y-m-d H:i:s', $nav['createtime'])}</div>
		</a>
	</li>
	{/loop}
</div>
{template 'common/footer'}